<div class="container">
    <div class="row">
        <div class="span3 hidden-phone"></div>
        <div class="span6" id="form-login">
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'login-form',
                'enableAjaxValidation' => FALSE,
                'htmlOptions' => array("class" => "form-horizontal well"),
            ));
            ?>
            <fieldset>
                <legend>Login Form</legend>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'username', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->textField($model, 'username', array('placeholder' => 'Email / Tài khoản', 'class' => 'span3')); ?>
                        <?php echo $form->error($model, 'username'); ?>
                    </div>
                </div>
                <div class="control-group">
                    <?php echo $form->labelEx($model, 'password', array('class' => 'control-label')); ?>
                    <div class="controls">
                        <?php echo $form->passwordField($model, 'password', array('placeholder' => 'Mật khẩu', 'class' => 'span3')); ?>
                        <?php echo $form->error($model, 'password'); ?>
                    </div>
                </div>


                <div class="control-group">
                    <div class="controls">
                        <button type="submit" id="submit" class="btn btn-primary button-loading" data-loading-text="Loading...">Sign in</button>

                        <?php echo Chtml::link('Quên mật khẩu',array('recovery/recovery'),array('class'=>'btn btn-secondary button-loading'))?>
                    </div>
                </div>
            </fieldset>
            <?php $this->endWidget(); ?>

        </div>
        <div class="span3 hidden-phone"></div>
    </div>
</div>


<?php
$form = new CForm(array(
    'elements' => array(
        'username' => array(
            'type' => 'text',
            'maxlength' => 32,
        ),
        'password' => array(
            'type' => 'password',
            'maxlength' => 32,
        ),
        'rememberMe' => array(
            'type' => 'checkbox',
        )
    ),
    'buttons' => array(
        'login' => array(
            'type' => 'submit',
            'label' => 'Login',
        ),
    ),
        ), $model);
?>